package com.company;

public class regular {
    public regular(String s) {
        System.out.println(isRegular(s));
    }

    public static boolean isRegular(String s) {
        if(s==null)return false;
        return s.matches("19\\d\\d");
    }

}
